package com.jketing.repository.db;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.jketing.entity.model.base.Area;

/**
 * 	RegionRepository 行政区域仓库操作类
 * 	功能：实现单表CRUD及分页条件查询
 * 
 * @author  李荣华
 * @version v1.0
 * @date    2017-11-19
 * @since   Spring-data 1.11.4
 */
public interface AreaRepository extends JpaRepository<Area, Integer> {
	List<Area> getRegionByGradeOrderById(String grade);
	List<Area> getRegionByParentIdOrderByCode(Integer id);
	
}
